﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FantastPlatform.Framework.Core;
using FantastPlatform.Framework.IModel;
using Newtonsoft.Json;
using FantastPlatform.Framework.Common.Serializable;

namespace FantastPlatform.Framework.Model
{
   public class EmployeeEducation:Item,IEmployeeEducation
    {
        #region IEmployeeEducation 成员
       [JsonConverter(typeof(InterfaceConverter<Employee>))]
        public virtual IEmployee Employee
        {
            get;
            set;
        }

        public virtual DateTime? BeginTime
        {
            get;
            set;
        }

        public virtual DateTime? EndTime
        {
            get;
            set;
        }

        public virtual string School
        {
            get;
            set;
        }

        public virtual string Major
        {
            get;
            set;
        }
        [JsonConverter(typeof(InterfaceConverter<Degree>))]
        public virtual IDegree Degree
        {
            get;
            set;
        }

        public virtual string Certificate
        {
            get;
            set;
        }

        #endregion

        #region IEmployeeEducation 成员

        [JsonConverter(typeof(InterfaceConverter<EducationType>))]
        public virtual IEducationType EducationType
        {
            get;
            set;
        }

        #endregion
    }
}
